<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    let youSalary = {
        'A':(salary)=>{
            return salary * 2
        },
        'B':(salary)=>{
            return salary * 3
        },
        'C':(salary)=>{
            return salary * 4
        },
    }
    function lookSalary(level,salary){
        return youSalary[level](salary)
    }
    console.log( lookSalary('A','10000') ) // 20000
    console.log( lookSalary('B','10000') ) // 30000
    console.log( lookSalary('C','10000') ) // 40000
</script>
</body>
</html>
